/**
 * 与领用相关的后端接口调用
 */
import instance from '@/utils/http'
import { addAssetApply,auditAssetApply,getAssetInfoList,userGetAssetApplyList,getAssetApplyList } from '@/api/url'

 // 用户提交领用申请        
export const addAssetApplyAPI = (data) => {
    return instance({
        url: addAssetApply,
        method: 'post',
        data: data
    })
}

// 管理员审核领用申请          
export const auditAssetApplyAPI = (data) => {
    return instance({
        url: auditAssetApply,
        method: 'put',
        data: data
    })
}
//申请人查询可领用的资产       
export const getAssetInfoListAPI = (data) => {
    return instance({
        url: getAssetInfoList,
        method: 'get',
        data: data
    })
}
//申请人查看申请表      
export const userGetAssetApplyListAPI = (data) => {
    return instance({
        url: userGetAssetApplyList,
        method: 'get',
        data: data
    })
}
//管理员查看申请表
export const  getAssetApplyListAPI= (data) => {
    return instance({
        url: getAssetApplyList,
        method: 'post',
        data: data
    })
}

